import React from 'react';
import ReactDom from 'react-dom';
import {HashRouter as Router, Route} from 'react-router-dom';

import Home from './components/Home';
import User from './components/User';
import Profile from './components/Profile';

/*
* Router:路由容器
* Route：路由规则 一个Route代表一个路由规则
*
* */

ReactDom.render(
    <Router>
        <Route path="/" component={Home} />
        <Route path="/user" component={User} />
        <Route path="/profile" component={Profile} />
    </Router>, document.getElementById('root')
);

